import http from '../index'

// 分页获取提货企业
export const getEntdlvs = ({ ascended = null, current = null, size = null, sortFieldName = null, entdlvSignCode = null }) => {
    return http.get("entdlvs", { ascended, current, size, sortFieldName, entdlvSignCode })
}

// 根据sid获取提货企业
export const getEntdlvDetail = ({ sid }) => {
    return http.get("entdlvs/" + sid)
}

// 新增提货企业
export const addEntdlv = ({ entdlvSignCode, notes = null, status = null }) => {
    return http.post("entdlvs", { entdlvSignCode, notes, status })
}

// 修改提货企业
export const editEntdlv = ({ sid, entdlvSignCode, notes = null, status = null }) => {
    return http.put("entdlvs/" + sid, { entdlvSignCode, notes, status })
}

// 批量删除提货企业
export const delEntdlvs = ({ sidList }) => {
    return http.put("entdlvs/delete", { sidList })
}